Vercel
API ReferenceChats

Update Chat

Updates a chat's title, privacy, or metadata.

PATCH/v2/chats/{chatId}

Usage

TypeScript Example
import { v0 } from 'v0-sdk'const result = await v0.chats.update({  chatId: 'chat_abc123',})console.log(result)

API Signature

Request

Path Parameters

chatId: string

The unique identifier of the chat.

Request Body

title?: string

A new title to assign to the chat.

privacy?: 'public' | 'private' | 'team' | 'team-edit' | 'unlisted'

Updated visibility setting for the chat.

metadata?: Record<string, string | null> | null

User-defined key-value metadata. Merged with existing entries. Pass null for a value to delete that key, or pass null for the whole field to delete all entries. Maximum 50 active entries.

Response

id: string

Unique chat identifier.

title?: string

Chat title, if generated.

privacy: 'public' | 'private' | 'team' | 'team-edit' | 'unlisted'

Visibility setting of the chat.

createdAt: string

ISO timestamp of when the chat was created.

updatedAt?: string

ISO timestamp of when the chat was last updated.

authorId: string

ID of the user who created the chat.

vercelProjectId?: string

Associated Vercel project ID, if any.

metadata: Record<string, string>

User-defined key-value metadata.

writePermission: boolean

Whether the caller has write access to this chat.

On this page